package com.hamster.crm.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * Created by peichunting on 19/12/19.
 */
@Data
public class BaseEntity {

    @TableId
    private String id;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 标识数据是否为删除数据，正常为0，删除为1
     */
    @TableField(fill = FieldFill.INSERT)
    private String deleteStatus;

    public static final String ID = "id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String DELETE_STATUS = "delete_status";
}
